home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hobby PC 13
/
Hobby PC 13.iso
/
assets
/
Asset Library
/
Images
/
Mouseover Buttons
/
For Any Dark Background
/
yellowgolfball
/
fxitems.xml
< prev
next >
Wrap
Extensible Markup Language
|
2001-04-09
|
6KB
|
80 lines
<?xml version="1.0" standalone="yes"?>
<Items>
<Template>
<Item Type="File" CLASS="Mouseover Button" ID="%Filename%" FILEFILTER="*.gif;*.jpg;*.png">
<Icon SRC="%Filename%"/>
<Icon2 SRC="%Filename%"/>
<Description>%ASK:Description:%{Button ALT Text}</Description>
<Filename SRC="%Filename%"/>
<Filename2 SRC="%Filename%"/>
<SCRIPT LANGUAGE="JScript"><![CDATA[
var src, src2, dest, attr, attr2, dst2, dst;
src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
src2 = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename2, 0, SRC)%";
function buildpath()
{
if (ActiveDocument.InCurrentProject)
{
dst = Application.ProjectDirectory + "\\images\\buttons\\default\\%Filename%";
dst2 = Application.ProjectDirectory + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
attr = Application.PathToURL(dst, ActiveDocument.Path + "default/%Filename%");
attr2 = Application.PathToURL(dst2, ActiveDocument.Path + "over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%");
}
else
{
dst = ActiveDocument.Path + "\\images\\buttons\\default\\%Filename%";
dst2 = ActiveDocument.Path + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
attr = "images/buttons/default/%Filename%";
attr2 = "images/buttons/over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
}
}
function dropfxnow()
{
Application.FX.CopyFile(src, dst);
Application.FX.CopyFile(src2, dst2);
Application.FX.SelectDropPoint();
AttrID=ActiveDocument.UniqueAttributeValue("ID","hover")
Application.FX.HTML('<A HREF=\"{Choose URL}\" ONMOUSEOVER=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr2 + '\'\}\" ONMOUSEOUT=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr + '\'}\"><IMG ID=\"' + AttrID + '\" SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
Application.FX.ShowDialog('ANCHOR');
}
// First, check if the file is saved
if (ActiveDocument.Path != "")
{
buildpath();
dropfxnow();
}
else
{
ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
if (ans == 1)
{
ActiveDocument.SaveAs();
}
if (ActiveDocument.Path != "") //check again if they did indeed save and name file
{
buildpath();
dropfxnow();
}
}
]]>
</SCRIPT>
</Item>
</Template>
<Item Type="File" CLASS="Mouseover Button" ID="tdb_tyattn"><Icon SRC="tdb_tyattn.gif"/><Icon2 SRC="(tdb)tyattn.gif"/><Description>Attention</Description><Filename SRC="tdb_tyattn.gif"/><Filename2 SRC="(tdb)tyattn.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="tdb_tydown"><Icon SRC="tdb_tydown.gif"/><Icon2 SRC="(tdb)tydown.gif"/><Description>Down</Description><Filename SRC="tdb_tydown.gif"/><Filename2 SRC="(tdb)tydown.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="tdb_tyemail"><Icon SRC="tdb_tyemail.gif"/><Icon2 SRC="(tdb)tyemail.gif"/><Description>Email</Description><Filename SRC="tdb_tyemail.gif"/><Filename2 SRC="(tdb)tyemail.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="tdb_tyfaq"><Icon SRC="tdb_tyfaq.gif"/><Icon2 SRC="(tdb)tyfaq.gif"/><Description>FAQ</Description><Filename SRC="tdb_tyfaq.gif"/><Filename2 SRC="(tdb)tyfaq.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="tdb_tygoback"><Icon SRC="tdb_tygoback.gif"/><Icon2 SRC="(tdb)tygoback.gif"/><Description>Go Back</Description><Filename SRC="tdb_tygoback.gif"/><Filename2 SRC="(tdb)tygoback.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="tdb_tyhelp"><Icon SRC="tdb_tyhelp.gif"/><Icon2 SRC="(tdb)tyhelp.gif"/><Description>Help</Description><Filename SRC="tdb_tyhelp.gif"/><Filename2 SRC="(tdb)tyhelp.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="tdb_tyhome"><Icon SRC="tdb_tyhome.gif"/><Icon2 SRC="(tdb)tyhome.gif"/><Description>Home</Description><Filename SRC="tdb_tyhome.gif"/><Filename2 SRC="(tdb)tyhome.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="tdb_tynext"><Icon SRC="tdb_tynext.gif"/><Icon2 SRC="(tdb)tynext.gif"/><Description>Next</Description><Filename SRC="tdb_tynext.gif"/><Filename2 SRC="(tdb)tynext.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="tdb_typrev"><Icon SRC="tdb_typrev.gif"/><Icon2 SRC="(tdb)typrev.gif"/><Description>Previous</Description><Filename SRC="tdb_typrev.gif"/><Filename2 SRC="(tdb)typrev.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="tdb_tyup"><Icon SRC="tdb_tyup.gif"/><Icon2 SRC="(tdb)tyup.gif"/><Description>Up</Description><Filename SRC="tdb_tyup.gif"/><Filename2 SRC="(tdb)tyup.gif"/></Item>
</Items>